//
//  HttpServiceWrapper.h
//  Poem
//
//  Created by 高波 on 2017/7/19.
//  Copyright © 2017年 tianwan. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^ResponseBlock)(BOOL isSucceed, id result);
typedef void (^uploadImageResponseBlock)(BOOL isSucceed, NSString *imageUrl);

@interface HttpServiceWrapper : NSObject


+ (HttpServiceWrapper *)instance;

- (void)GET:(NSString*)url parameters:(id)params session:(NSString *)session resultBlock:(ResponseBlock)block withDialog:(BOOL)show;

- (void)POST:(NSString*)url parameters:(id)params session:(NSString *)session resultBlock:(ResponseBlock)block withDialog:(BOOL)show;


@end
